export const getStorage=(key)=>{
    const value=localStorage[key]
    if (value) {
        return JSON.parse(value)
    }
    return value
}
export const setStroage=(key,value)=>{
    if (typeof value==='string') {
        localStorage[key]=value
    }else{
        localStorage[key]= JSON.stringify(value)
    }
}